package wyj;

import java.util.Scanner;

public class 分解质因数 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int sr=in.nextInt();
        if (sushu(sr)){
            System.out.print(sr+"="+sr);
        }
      else {
       print(sr);
        }

    }
    public static boolean sushu(int n){
        boolean pd=true;
        for (int i=2;i<n;i++){
            if (n%i==0){
                pd=false;
            }
        }
        return pd;
    }
    public static void print(int n){
        int sum=n;
        int[] a = new int[n];
        int j=0,x=0;
        for (int i=2;i<n;i++){
            if (n%i==0){
                a[j]=i;
                j++;
                n=n/i;
                i=i-1;
            }
        }
        a[j]=n;
        System.out.print(sum+"=");
        for (int m=0;m<=j;m++){
            if (x==0){
                System.out.print(a[m]);
                x++;
            }
            else {
                System.out.print("x"+a[m]);
            }
        }
    }
}
